/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

import cluster from 'cluster';

if (cluster.isMaster) {
  const { masterProcessBoot } = require('../cluster/master-process-boot.js');
  masterProcessBoot();
  const { startJavaDaemon } = require('../java/hvigor-java-daemon.js');
  startJavaDaemon();
} else {
  const { registryWorkerProcessListener } = require('../cluster/worker-process-lifecycle.js');
  registryWorkerProcessListener();
}
